package Ch16;

import java.io.File;

import jxl.Cell;
import jxl.Sheet;
import jxl.Workbook;

public class ExcelReader {

	public static void main(String[] args) throws Exception {
		Workbook wb = Workbook.getWorkbook(new File("data.xls"));
		Sheet sheet = wb.getSheet(0);
		
		int i = 0;
		while(true){
			try {
				Cell cell = sheet.getCell(0, i);
				i++;
				System.out.println(cell.getContents());
			} catch (Exception e) {
				break;
			}
		}
	}
}
